package com.sign.server.config;

import com.sign.server.interceptor.SignInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * Created by ganbo on 2019/6/12.
 */

@Configuration
public class WebConfig implements WebMvcConfigurer {

    @Autowired
    SignInterceptor signInterceptor;

    @Override
    public void addInterceptors(final InterceptorRegistry registry) {
        registry.addInterceptor(signInterceptor);
    }
}
